package com.tarena.lbs.content;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDubbo  // 开启Dubbo功能（核心注解，无需额外的@DubboApplication）
@MapperScan("com.tarena.lbs.content.dao.mapper")  // 扫描MyBatis Mapper接口
// 扫描Spring组件
public class ContentApplication {
    public static void main(String[] args) {
        SpringApplication.run(ContentApplication.class, args);
    }
}